import Vue from 'vue'
import App from './App.vue'
import router from './router'
// 引入vuex
import store from './store'

/*样式重置*/
import './assets/css/reset.less'
import './assets/css/adapter.less'

// 全局引入整个Vant
import Vant from 'vant';
import 'vant/lib/index.css';
// Vue.use(Skeleton);
Vue.use(Vant);

// 全局的header和footer组件
import vantHeader from './components/header.vue'
Vue.component(vantHeader.name, vantHeader);
import vantFooter from './components/footer.vue'
Vue.component(vantFooter.name, vantFooter);

Vue.config.productionTip = false

// 引入axios
import instance from './assets/js/http';
// instance.defaults.baseURL = '/v1/'

Vue.prototype.$http = instance;

new Vue({
  router,
  // 将vuex跟vue绑定
  store,
  render: h => h(App)
}).$mount('#app')
